package zb.blog.service;

import org.json.JSONObject;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Map;

public interface IVerificationCode {
    /**
     * @Author: BinZhang
     * @Date: 2018/5/10 21:55
     * @Description:第一次验证，对接第三方极验服务器并初始化验证码
     */
    String initGeetest(HttpServletRequest request);

    /**
     * @return 1:成功，0:失败
     * @Author: BinZhang
     * @Date: 2018/5/10 21:55
     * @Description:二次验证
     */
    int validateCode(HttpSession session, Map<String, String> geeParam);
}
